<template>
  <view>
    <u-button @click="GoFen()">分包跳转223</u-button>
  </view>
</template>

<script>
export default {
  onShow() {
    this.$api.getGoodsList2(this.params).then(res=>{
      console.log(res,"red结果")
    })


    // uni.request({
    //   url:"http://127.0.0.1:3000/api/goods/index",
    //   data:this.params,
    //   method:"GET",
    //   sucess:(response=>{
    //     console.log(response,'response原生写法')
    //   })
    // })

  },
  //  分包跳转
  data() {
    return {
      params:{
        limit:10
      }
    };
  },
  onLoad() {},
  methods: {
    GoFen() {
      uni.navigateTo({
        url: "/FenOne/index/index"
      });
    }
  }
};
</script>

<style>
.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo {
  height: 200rpx;
  width: 200rpx;
  margin: 200rpx auto 50rpx auto;
}

.text-area {
  display: flex;
  justify-content: center;
}

.title {
  font-size: 36rpx;
  color: #8f8f94;
}
</style>
